package oop1;

/**
 * @author oldliu
 * @since 1.0
 */
public class Demo {
    public static void main(String[] args) {
        double []ar={1,23,4,5,6,7,8,10};
        //遍历，增强for循环
        for(double t:ar){
            //t是数组的每一个值
            System.out.print(t+" ");
        }

//        for (int i = 0; i < ar.length; i++) {
//            int t=ar[i];
        //ar[i]*=10;
//            System.out.println((i+1)+":"+t);
//        }
    }
}
